package com.wzy.designpattern.structural.flyweight;

/**
 * 描述
 * 创建人    Wzy
 * 创建时间: 2020-05-16  2:45
 */
public class Test {
    private static final String departments[] = {"BD", "RD", "QA", "PM"};

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            String department = departments[(int) Math.random() * departments.length];
            Manager manger = (Manager) EmployeeFactory.getManger(department);

        }
    }
}
